package com.cj.factory;

import okhttp3.OkHttpClient;

/**
 * @author cc
 * @date 2025-05-12 16:23
 **/

public class OkHttpClientFactory {

    private OkHttpClient okHttpClient;

    public OkHttpClient okHttpClient() {
        if (okHttpClient == null){
            OkHttpClient.Builder builder = new OkHttpClient.Builder();

            builder.setConnectTimeout$okhttp(5000);
            builder.setReadTimeout$okhttp(5000);

            okHttpClient = builder.build();
        }



       return okHttpClient;
    }
}
